package org.springblade.humanResource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springblade.core.secure.BladeUser;
import org.springblade.humanResource.entity.ZTUser;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface HumanUserService extends IService<ZTUser> {
	/**
	 * 获取人员下拉
	 *
	 * @param projectId
	 * @return
	 */
	List<Map<String, Object>> getRYlist(Integer projectId);

	/**
	 * 获取用户部门下拉框
	 *
	 * @param bladeUser
	 * @return
	 */
	List<HashMap<String, Object>> getDeptSelectByUser(BladeUser bladeUser);

	/**
	 * 获取用户人员下拉框
	 *
	 * @param bladeUser
	 * @return
	 */
	List<HashMap<String, Object>> getPersonnelByUser(BladeUser bladeUser, String projectId);
	/**
	 * 导出
	 *
	 * @return
	 */
	HSSFWorkbook export(Map<String, Object> parm, HttpServletResponse response );

	List<Integer> getZtDeptId(String deptName);


}
